<template>
  <div>
    <!--<GridView />-->
    <GridView_Element :columns="columns" :table-data="tableData"/>
  </div>
</template>

<script>
  export default {
    name: "MyGridView",
    data() {
      return {
        columns: [
          {prop: 'date', title: '日期', width: 80},
          {prop: 'name', title: '姓名'},
          {prop: 'address', title: '地址', width: 280},
        ]
      }
    },
    computed: {
      tableData() {
        let arr = [];
        for (let i = 0; i < 100; i++) {
          arr.push({
            date: `${new Date().getMinutes()}:${new Date().getSeconds()}`,
            name: '王' + i,
            address: '保定' + i + '街'
          })
        }
        return arr
      }
    },
  }
</script>

<style scoped>

</style>
